package edu.sctu.practice.class01.renpingan.assign04;

/**
 * Created by Administrator on 2015/11/5.
 */
public class Learning {
    boolean flag;
    String project;

    public Learning(boolean flag,String project) {
        this.flag = flag;
        this.project = project;

    }

    public void learning() {
        if (flag) {
            System.out.println("开始学习"+project);
        } else {
            System.out.println("请确定电脑是否打开");
        }

    }

    public boolean isFinish() {
        return flag;
    }
}
